require(["core", "jQuery", "coAjax", "hash_routie", "queryString", "href"], function(jSouper, $, coAjax, hash_routie, QueryString, href) {
	coAjax.get(appConfigPub.open.news_list, function(result) {
		var news_list = result.result;
		App.set("$Cache.dotnar_news.list", news_list);
		App.set("$Cache.dotnar_news.first_news", news_list[0]);
	});
	hash_routie.on("news", function() {
		var queryString = new QueryString(location.hash);
		var news_id = queryString.get("id");
		if (news_id) {
			coAjax.get(appConfigPub.open.news_by_id, {
				news_id: news_id
			}, function(result) {
				App.set("$Cache.dotnar_news.current_news", result.result);
			});
		}
	});
});